package com.szsh.aiot.common.core.domain;

public class Key implements java.io.Serializable {
    private static final long serialVersionUID = 7935145105155543737L;

    /** 应用ID */
    private String appId;
    /** 密钥版本 */
    private String version;
    /** 签名密钥 */
    private String signatureSecret;
    /**
     * 加密类型
     * 1:aes加密
     * 2:aes带偏移量加密
     * 3:des加密
     * 4:rsa加密
     */
    private Integer encryptMethodType;
    /** 对称加密密钥 */
    private String key;
    /** 对称加密偏移量 */
    private String iv;
    /** 非对称加密公钥 */
    private String publicKey;
    /** 非对称加密私钥 */
    private String privateKey;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getSignatureSecret() {
        return signatureSecret;
    }

    public void setSignatureSecret(String signatureSecret) {
        this.signatureSecret = signatureSecret;
    }

    public Integer getEncryptMethodType() {
        return encryptMethodType;
    }

    public void setEncryptMethodType(Integer encryptMethodType) {
        this.encryptMethodType = encryptMethodType;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }

    public String getPublicKey() {
        return publicKey;
    }

    public void setPublicKey(String publicKey) {
        this.publicKey = publicKey;
    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    @Override
    public String toString() {
        return "Key{" +
                "appId='" + appId + '\'' +
                ", version='" + version + '\'' +
                ", signatureSecret='" + signatureSecret + '\'' +
                ", encryptMethodType=" + encryptMethodType +
                ", key='" + key + '\'' +
                ", iv='" + iv + '\'' +
                ", publicKey='" + publicKey + '\'' +
                ", privateKey='" + privateKey + '\'' +
                '}';
    }
}
